/*
 * @Author: szx
 * @Date: 2022-03-16 14:54:44
 * @LastEditTime: 2022-03-16 14:58:05
 * @Description:
 * @FilePath: \leetcode\剑指offer\03\03.js
 */
/**
 * @param {number[]} nums
 * @return {number}
 */
var findRepeatNumber = function (nums) {
    const set = new Set();
    for (let i of nums) {
        if (set.has(i)) return i;
        set.add(i);
    }
    return;
};
